  <% cache('shops/search_and_category') do %>
  <div class="widget search widget-search">
    <div class="widget-wrap widget-inside">
      <div class="search">

        <form method="get" class="search-form" action="/search">
          <div>
            <input class="search-text" type="text" name="q" value="搜索旗舰店..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">
            <input class="search-submit button" name="submit" type="submit" value="搜索">
          </div>
        </form><!-- .search-form -->

      </div><!-- .search -->
    </div>
  </div>

  <div class="widget category widget-archives">
    <div class="widget-wrap widget-inside">
      <h3 class="widget-title">旗舰店铺分类</h3>
      <ul class="category">
        <li><%= link_to "所有分类", shops_path %></li>
        <% Category.all_one_level.each do |cat| %>
          <li><%= link_to cat.name, category_shops_path(cat) %></li>
        <% end %>
      </ul>
    </div>
  </div>
  <% end %>
